<form class="form-horizontal" role="form" method="PUT" id="editOrgForm"
	action="/backend/org/${code}">
	<input type="hidden" name="org.code" value="${code}" id="code">
	<div class="form-group">
		<label class="col-sm-3 control-label">组织编码</label>
		<div class="col-sm-7">
			<p class="form-control-static">{{one.code}}</p>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-3 control-label">组织名称</label>
		<div class="col-sm-7">
			<input type="text" class="form-control" name="org.name"
				v-model="one.name" placeholder="必填" required autofocus>
		</div>
	</div>




	<div class="modal-footer">
		<button class="btn btn-success x" style="success" type="submit">确定</button>
		<button class="btn btn-danger x" style="danger" data-dismiss="modal">取消</button>
	</div>
</form>

<script>
	var vmEdit = new Vue({
		el : "#editOrgForm",
		data : {
			roles : [],
			orgs : [],
			positions : [],
			one : {}
		},
		ready : function() {
			var _this = this;

			_this.$http.get('/backend/org/' + $("#code").val()).then(
					function(resp) {
						this.one = resp.data.items[0];
					});

		}
	})
</script>